.class public Lcom/bitauto/autoeasy/selectcar/DealerActivity;
.super Landroid/app/Activity;
.source "DealerActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/widget/AdapterView$OnItemClickListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/bitauto/autoeasy/selectcar/DealerActivity$downLoadTask;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroid/app/Activity;",
        "Landroid/view/View$OnClickListener;",
        "Landroid/widget/AdapterView$OnItemClickListener;"
    }
.end annotation


# static fields
.field private static final BUTTONSIZE:I = 0x3


# instance fields
.field private final CALLCENTERNUMBER:Ljava/lang/String;

.field private final VENDORFULLNAME:Ljava/lang/String;

.field private final VENDORID:Ljava/lang/String;

.field private final VENDORNAME:Ljava/lang/String;

.field private final VENDORSALEADDR:Ljava/lang/String;

.field private final VENDORSITE:Ljava/lang/String;

.field private final VENDORTEL:Ljava/lang/String;

.field private allList:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/bitauto/autoeasy/selectcar/Object/Dealer;",
            ">;"
        }
    .end annotation
.end field

.field private button:[Landroid/widget/Button;

.field private dealerParser:Lcom/bitauto/autoeasy/selectcar/Object/DealerParser;

.field private fourSlist:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/bitauto/autoeasy/selectcar/Object/Dealer;",
            ">;"
        }
    .end annotation
.end field

.field private listView:Landroid/widget/ListView;

.field private tempList:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/bitauto/autoeasy/selectcar/Object/Dealer;",
            ">;"
        }
    .end annotation
.end field

.field private zongheList:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/bitauto/autoeasy/selectcar/Object/Dealer;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 27
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 29
    const-string v0, "VendorID"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->VENDORID:Ljava/lang/String;

    .line 30
    const-string v0, "vendorName"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->VENDORNAME:Ljava/lang/String;

    .line 31
    const-string v0, "vendorFullName"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->VENDORFULLNAME:Ljava/lang/String;

    .line 32
    const-string v0, "vendorTel"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->VENDORTEL:Ljava/lang/String;

    .line 33
    const-string v0, "vendorSaleAddr"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->VENDORSALEADDR:Ljava/lang/String;

    .line 34
    const-string v0, "CallCenterNumber"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->CALLCENTERNUMBER:Ljava/lang/String;

    .line 35
    const-string v0, "Vendorsite"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->VENDORSITE:Ljava/lang/String;

    .line 38
    const/4 v0, 0x3

    new-array v0, v0, [Landroid/widget/Button;

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->button:[Landroid/widget/Button;

    .line 27
    return-void
.end method


# virtual methods
.method public changeButtonBg(I)V
    .locals 7
    .parameter "num"

    .prologue
    const/4 v6, 0x3

    const-string v5, "["

    .line 185
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    if-lt v0, v6, :cond_0

    .line 197
    return-void

    .line 186
    :cond_0
    const/4 v1, 0x0

    .line 187
    .local v1, str:Ljava/lang/String;
    if-ne v0, p1, :cond_2

    .line 188
    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->button:[Landroid/widget/Button;

    aget-object v2, v2, v0

    invoke-virtual {v2}, Landroid/widget/Button;->getText()Ljava/lang/CharSequence;

    move-result-object v2

    invoke-interface {v2}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v1

    .line 189
    const-string v2, "["

    invoke-virtual {v1, v5}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_1

    .line 190
    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->button:[Landroid/widget/Button;

    aget-object v2, v2, v0

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "["

    invoke-direct {v3, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "]"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 185
    :cond_1
    :goto_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 192
    :cond_2
    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->button:[Landroid/widget/Button;

    aget-object v2, v2, v0

    invoke-virtual {v2}, Landroid/widget/Button;->getText()Ljava/lang/CharSequence;

    move-result-object v2

    invoke-interface {v2}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v1

    .line 193
    const-string v2, "["

    invoke-virtual {v1, v5}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 194
    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->button:[Landroid/widget/Button;

    aget-object v2, v2, v0

    const/4 v3, 0x1

    invoke-virtual {v1, v3, v6}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1
.end method

.method public copyList(Ljava/util/ArrayList;)V
    .locals 3
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/bitauto/autoeasy/selectcar/Object/Dealer;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 141
    .local p1, list:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/bitauto/autoeasy/selectcar/Object/Dealer;>;"
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lt v0, v1, :cond_0

    .line 145
    return-void

    .line 142
    :cond_0
    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->allList:Ljava/util/ArrayList;

    invoke-virtual {p1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;

    invoke-virtual {v2, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 141
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method public downLoadData()V
    .locals 5

    .prologue
    .line 62
    new-instance v0, Ljava/lang/StringBuffer;

    invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V

    .line 63
    .local v0, sb:Ljava/lang/StringBuffer;
    const-string v1, "http://m.bitauto.com/iphoneapi/v2/getvendorbyserid/?carid="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {p0}, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string v3, "carid"

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    move-result-object v1

    .line 64
    const-string v2, "&city="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    .line 65
    const-string v2, "autoeasy"

    const/4 v3, 0x1

    invoke-virtual {p0, v2, v3}, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v2

    const-string v3, "cityid"

    const-string v4, "201"

    invoke-interface {v2, v3, v4}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 67
    new-instance v1, Lcom/bitauto/autoeasy/selectcar/Object/DealerParser;

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/bitauto/autoeasy/selectcar/Object/DealerParser;-><init>(Ljava/lang/String;)V

    iput-object v1, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->dealerParser:Lcom/bitauto/autoeasy/selectcar/Object/DealerParser;

    .line 68
    iget-object v1, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->dealerParser:Lcom/bitauto/autoeasy/selectcar/Object/DealerParser;

    invoke-virtual {v1}, Lcom/bitauto/autoeasy/selectcar/Object/DealerParser;->Paser2Object()V

    .line 70
    return-void
.end method

.method public initView()V
    .locals 5

    .prologue
    const/4 v4, 0x2

    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 99
    iget-object v1, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->button:[Landroid/widget/Button;

    const v0, 0x7f0b0053

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    aput-object v0, v1, v2

    .line 100
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->button:[Landroid/widget/Button;

    aget-object v0, v0, v2

    const-string v1, "\u5168\u90e8"

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 101
    iget-object v1, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->button:[Landroid/widget/Button;

    const v0, 0x7f0b0054

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    aput-object v0, v1, v3

    .line 102
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->button:[Landroid/widget/Button;

    aget-object v0, v0, v3

    const-string v1, "4S\u5e97"

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 103
    iget-object v1, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->button:[Landroid/widget/Button;

    const v0, 0x7f0b0055

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    aput-object v0, v1, v4

    .line 104
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->button:[Landroid/widget/Button;

    aget-object v0, v0, v4

    const-string v1, "\u7efc\u5408\u5e97"

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 105
    const v0, 0x102000a

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->listView:Landroid/widget/ListView;

    .line 106
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 3
    .parameter "v"

    .prologue
    .line 109
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    .line 138
    :cond_0
    :goto_0
    return-void

    .line 111
    :pswitch_0
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->changeButtonBg(I)V

    .line 112
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->allList:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    .line 113
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->allList:Ljava/util/ArrayList;

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->tempList:Ljava/util/ArrayList;

    .line 114
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->listView:Landroid/widget/ListView;

    new-instance v1, Lcom/bitauto/autoeasy/news/Adapter/DealerAdapter;

    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->tempList:Ljava/util/ArrayList;

    invoke-direct {v1, v2, p0}, Lcom/bitauto/autoeasy/news/Adapter/DealerAdapter;-><init>(Ljava/util/ArrayList;Landroid/content/Context;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    goto :goto_0

    .line 120
    :pswitch_1
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->changeButtonBg(I)V

    .line 121
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->fourSlist:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    .line 122
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->fourSlist:Ljava/util/ArrayList;

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->tempList:Ljava/util/ArrayList;

    .line 123
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->listView:Landroid/widget/ListView;

    new-instance v1, Lcom/bitauto/autoeasy/news/Adapter/DealerAdapter;

    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->tempList:Ljava/util/ArrayList;

    invoke-direct {v1, v2, p0}, Lcom/bitauto/autoeasy/news/Adapter/DealerAdapter;-><init>(Ljava/util/ArrayList;Landroid/content/Context;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    goto :goto_0

    .line 129
    :pswitch_2
    const/4 v0, 0x2

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->changeButtonBg(I)V

    .line 130
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->zongheList:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    .line 131
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->zongheList:Ljava/util/ArrayList;

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->tempList:Ljava/util/ArrayList;

    .line 132
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->listView:Landroid/widget/ListView;

    new-instance v1, Lcom/bitauto/autoeasy/news/Adapter/DealerAdapter;

    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->tempList:Ljava/util/ArrayList;

    invoke-direct {v1, v2, p0}, Lcom/bitauto/autoeasy/news/Adapter/DealerAdapter;-><init>(Ljava/util/ArrayList;Landroid/content/Context;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    goto :goto_0

    .line 109
    nop

    :pswitch_data_0
    .packed-switch 0x7f0b0053
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 5
    .parameter "savedInstanceState"

    .prologue
    const/4 v4, 0x0

    .line 49
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 51
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string v2, "showname"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 52
    .local v0, title:Ljava/lang/String;
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "\u672c\u5730\u7ecf\u9500\u5546 - "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->setTitle(Ljava/lang/CharSequence;)V

    .line 53
    const v1, 0x7f030020

    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->setContentView(I)V

    .line 54
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->initView()V

    .line 55
    invoke-virtual {p0, v4}, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->changeButtonBg(I)V

    .line 56
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iput-object v1, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->allList:Ljava/util/ArrayList;

    .line 58
    new-instance v1, Lcom/bitauto/autoeasy/selectcar/DealerActivity$downLoadTask;

    invoke-direct {v1, p0}, Lcom/bitauto/autoeasy/selectcar/DealerActivity$downLoadTask;-><init>(Lcom/bitauto/autoeasy/selectcar/DealerActivity;)V

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/String;

    const-string v3, ""

    aput-object v3, v2, v4

    invoke-virtual {v1, v2}, Lcom/bitauto/autoeasy/selectcar/DealerActivity$downLoadTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    .line 59
    return-void
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 4
    .parameter
    .parameter "view"
    .parameter "position"
    .parameter "id"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .line 150
    .local p1, parent:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->tempList:Ljava/util/ArrayList;

    invoke-virtual {v2, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;

    .line 151
    .local v0, dea:Lcom/bitauto/autoeasy/selectcar/Object/Dealer;
    new-instance v1, Landroid/content/Intent;

    const-class v2, Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity;

    invoke-direct {v1, p0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 152
    .local v1, intent:Landroid/content/Intent;
    const-string v2, "VendorID"

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;->getVendorID()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 153
    const-string v2, "vendorFullName"

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;->getVendorFullName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 154
    const-string v2, "vendorName"

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;->getVendorName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 155
    const-string v2, "vendorSaleAddr"

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;->getVendorSaleAddr()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 156
    const-string v2, "Vendorsite"

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;->getVendorsite()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 157
    const-string v2, "vendorTel"

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;->getVendorTel()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 158
    const-string v2, "CallCenterNumber"

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;->getCallCenterNumber()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 159
    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->startActivity(Landroid/content/Intent;)V

    .line 161
    return-void
.end method

.method public refreshView()V
    .locals 3

    .prologue
    .line 73
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->button:[Landroid/widget/Button;

    const/4 v1, 0x0

    aget-object v0, v0, v1

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 74
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->button:[Landroid/widget/Button;

    const/4 v1, 0x1

    aget-object v0, v0, v1

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 75
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->button:[Landroid/widget/Button;

    const/4 v1, 0x2

    aget-object v0, v0, v1

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 77
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->dealerParser:Lcom/bitauto/autoeasy/selectcar/Object/DealerParser;

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/selectcar/Object/DealerParser;->getFourList()Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->fourSlist:Ljava/util/ArrayList;

    .line 78
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->dealerParser:Lcom/bitauto/autoeasy/selectcar/Object/DealerParser;

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/selectcar/Object/DealerParser;->getZongheList()Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->zongheList:Ljava/util/ArrayList;

    .line 80
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->allList:Ljava/util/ArrayList;

    .line 82
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->fourSlist:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    .line 83
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->fourSlist:Ljava/util/ArrayList;

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->copyList(Ljava/util/ArrayList;)V

    .line 85
    :cond_0
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->zongheList:Ljava/util/ArrayList;

    if-eqz v0, :cond_1

    .line 86
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->zongheList:Ljava/util/ArrayList;

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->copyList(Ljava/util/ArrayList;)V

    .line 89
    :cond_1
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->allList:Ljava/util/ArrayList;

    if-eqz v0, :cond_2

    .line 90
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->allList:Ljava/util/ArrayList;

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->tempList:Ljava/util/ArrayList;

    .line 91
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->listView:Landroid/widget/ListView;

    new-instance v1, Lcom/bitauto/autoeasy/news/Adapter/DealerAdapter;

    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->allList:Ljava/util/ArrayList;

    invoke-direct {v1, v2, p0}, Lcom/bitauto/autoeasy/news/Adapter/DealerAdapter;-><init>(Ljava/util/ArrayList;Landroid/content/Context;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 92
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerActivity;->listView:Landroid/widget/ListView;

    invoke-virtual {v0, p0}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 96
    :cond_2
    return-void
.end method
